package org.mybatis3.service1.impl;

import org.mybatis3.dao1.UserDao;
import org.mybatis3.dao1.UserDaoFactory;
import org.mybatis3.dao1.impl.UserDaoImpl;
import org.mybatis3.service1.UserService;

public class UserServiceImpl implements UserService{
//    UserDao userDao=new UserDaoImpl();
//    UserDao userDao= UserDaoFactory.getInstance();
       private UserDao userDao;

    public UserDao getUserDao() {
        return userDao;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public boolean login(String uname, String pwd) {
        return this.userDao.login(uname,pwd);
    }
}
